#include "Heap.h"

void test01()
{
	HP hp;
	HPInit(&hp);
	HPPush(&hp, 15);
	HPPush(&hp, 60);
	HPPush(&hp, 80);
	HPPrint(&hp);
	while (!HPEmpty(&hp))
	{
		printf("%d ", HPTop(&hp));
		HPPop(&hp);
	}
	HPDestroy(&hp);
}

void test02()
{
	int arr[] = { 30,56,25,15,70,10 };
	HPSort(arr, 6);
	for (int i = 0; i <6; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}

int main()
{
	test02();
	return 0;
}